{*
Replication is not allowed under the Open source software act, this file
may be edited but may not be used as yours or redistributed.
*}
<table width="100%" cellpadding="3" class="main">
	<tr>
	  <td class="title">
      <h3>Personal Details</h3>      </td>
      <td class="title">
      <h3>Current / Previous Orders</h3>      </td>
    </tr>
    <tr>
    	<td valign="top">
          <table class="table_dark">
            <tr>
              <td colspan="2"><p>To change your details please click <a href="index.php?personal_page=details">here<br />
              </a><a href="index.php?personal_page=details"><br>
              </a></p>
			  </td>
            </tr>
            <tr>
              <td>First Name</td>
              <td>{user->user_firstname}</td>
            </tr>
            <tr>
              <td>Last Name</td>
              <td>{user->user_lastname}</td>
            </tr>
            <tr>
              <td>Address 1</td>
              <td>{user->user_address}</td>
            </tr>
            <tr>
              <td>Address 2</td>
              <td>{user->user_address2}</td>
            </tr>
            <tr>
              <td>Post Code</td>
			  <td>{user->user_zip}</td>
			</tr>            
            <tr>
              <td>City</td>
              <td>{user->user_city}</td>
            </tr>
            <tr>
              <td>County</td>
              <td>{user->user_state}</td>
            </tr>
            <tr>
              <td>Country</td>
              <td>{include file="countries.tpl" code=$user->user_country}</td>
            </tr>
            <tr>
              <td>Phone Number</td>
              <td>{user->user_phone}</td>
            </tr>
            <tr>
              <td>Fax</td>
              <td>{user->user_fax}</td>
            </tr>
            <tr>
              <td>Email</td>
              <td>{user->user_email}</td>
            </tr>
            <tr>
              <td></td>
            </tr>
        </table>
	  </td>
      <td valign="top">
		<table class="table_dark">
		  <tr>
		  	<td colspan="5"><p>To change or see your orders in more detail please click <a href="index.php?personal_page=orders">here
              </a><br><br>
              Only the last 6 orders are showed here.
              <br></p>
			</td>
		  </tr>
          <tr>
            <td><p><strong>Order Number</strong></p></td>
            <td><p><strong>Date Ordered</strong></p></td>
            <td><p><strong>Tickets</strong></p></td>
            <td><p><strong>Total Price</strong></p></td>
            <td><p><b>Status</b></p></td>
          </tr>
		  {order->order_list user_id=$user->user_id order_by_date="DESC" length=6}
		    {if $shop_order.order_status eq "cancel"}
				<tr class='user_order_{$shop_order.order_status}'>
			{elseif $shop_order.order_status eq "reemit"}
				<tr class='user_order_{$shop_order.order_status}'>
			{elseif $shop_order.order_status eq "res"}
				<tr class='user_order_{$shop_order.order_status}'>
			{elseif $shop_order.order_shipment_status eq "send"}
				<tr class='user_order_{$shop_order.order_shipment_status}'>
			{elseif $shop_order.order_payment_status eq "payed"}
				<tr class='user_order_{$shop_order.order_payment_status}'>
			{elseif $shop_order.order_status eq "ord"}
				<tr class='user_order_{$shop_order.order_status}'>
			{else}
				<tr class='user_order_cancel'>
			{/if}
		    <td class='admin_info'>{$shop_order.order_id}</td>
			<td class='admin_info'>{$shop_order.order_date}</td>
			<td class='admin_info'>{$shop_order.order_tickets_nr}</td>
			<td class='admin_info'>{$shop_order.order_total_price}</td>
			<td class='admin_info'>
			{if $shop_order.order_status eq "cancel"}Canceled
			{elseif $shop_order.order_status eq "reemit"}Remade
			{elseif $shop_order.order_status eq "res"}Reserved
			{elseif $shop_order.order_shipment_status eq "send"}Sent & Payed
			{elseif $shop_order.order_payment_status eq "payed"}Payed
			{elseif $shop_order.order_status eq "ord"}Ordered/Unpaid
			{else}Unknown Status - Contact Admin
			{/if}</td>		
	  	  </tr>
    	  {/order->order_list}
          <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
        </table></td>
    </tr>
</table>
